-- GENERATED SPELL FOR [Phase Lasher] --


function spell0_13196(pUnit, Event) --@Fireball Volley,n/a--
pUnit:FullCastSpellOnTarget(15285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13196', 606, 1)
end

function spell1_13196(pUnit, Event) --@Ice Nova,Self--
pUnit:FullCastSpellOnTarget(22519,pUnit)
pUnit:RegisterEvent('Sorts_13196', 2297, 1)
end

function spell2_13196(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(17228,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13196', 589, 1)
end

function spell3_13196(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(22356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13196', 10310, 1)
end

function spell4_13196(pUnit, Event) --@Thorn Volley,Self--
pUnit:FullCastSpellOnTarget(21749,pUnit)
pUnit:RegisterEvent('Sorts_13196', 2302, 1)
end

function Sorts_13196(pUnit, Event)
local choix_sorts_13196 = math.random(0, 4)
if choix_sorts_13196 == 0 then
pUnit:RegisterEvent('spell0_13196', 1, 1)
end
if choix_sorts_13196 == 1 then
pUnit:RegisterEvent('spell1_13196', 1, 1)
end
if choix_sorts_13196 == 2 then
pUnit:RegisterEvent('spell2_13196', 1, 1)
end
if choix_sorts_13196 == 3 then
pUnit:RegisterEvent('spell3_13196', 1, 1)
end
if choix_sorts_13196 == 4 then
pUnit:RegisterEvent('spell4_13196', 1, 1)
end
end

function mob13196_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13196', math.random(1500, 3000), 1)
end

function mob13196_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13196_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13196_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13196, 1, 'mob13196_Action')
RegisterUnitEvent(13196, 2, 'mob13196_Leave')
RegisterUnitEvent(13196, 3, 'mob13196_Kill')
RegisterUnitEvent(13196, 4, 'mob13196_Die')
